package cn.darkhorse.device.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 业务提醒
 * </p>
 *
 * @author yuan jun
 * @since 2023-02-03
 */
@Getter
@Setter
  @TableName("mes_msg_warning")
@ApiModel(value = "MesMsgWarning对象", description = "业务提醒")
public class MesMsgWarning implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("key")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty(" 提醒时间(创建时间)")
      private LocalDateTime createTime;

      @ApiModelProperty("设备信息")
      private String deviceMsg;

      @ApiModelProperty("业务信息")
      private String businessMsg;

      @ApiModelProperty("未读 0 已读 1")
      private Integer readFlag;

      @ApiModelProperty("JSON格式附加信息")
      private String other;

      @ApiModelProperty("消息类型: 0设备闲置 1设备点检 2设备维修 3设备保养 4备件库预警")
      private Integer msgType;

      @ApiModelProperty("接收人id")
      private Long receiverId;

      @ApiModelProperty("业务Id")
      private Long businessId;
      @ApiModelProperty("业务查看时间")
      private LocalDateTime readTime;


}
